package com.imooc.service.impl;

import com.imooc.dao.UserMapper;
import com.imooc.pojo.User;
import com.imooc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by jiangfeixiang on 2018/3/27
 */
@Service
public class UserServiceImpl implements UserService {
    //注入
    @Autowired
    private UserMapper userMapper;
    /**
     * 查询
     */
    public List<User> getList(){
        List<User> users = userMapper.selectAll();
        return users;
    }
}
